package com.itheima.day15.danyuanceshi;

import cn.hutool.core.lang.Assert;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;

public class Test1 {
    //公共，无参，无返回值
    @Test
    public void testprint()
    {
        StringUtils2.printNum("123");
        StringUtils2.printNum("");
        //测试空值时报空指针异常
        StringUtils2.printNum(null);
    }
    @Test
    public void testreverse()
    {
        System.out.println(StringUtils2.reverse("liqianqian"));
        System.out.println(StringUtils2.reverse(""));
        System.out.println(StringUtils2.reverse(null));
    }
    @Test
    public void testreverse2()
    {
        String RS = StringUtils2.reverse("liqianqian");
        Assertions.assertEquals("naiqnaiqil",RS,"测试结果不一致");


    }
}
